package com.service.impl;

import com.entity.BookFlatDetails;
import com.mapper.BookFlatDetailsMapper;
import com.service.BookFlatDetailsService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @ fileName:BookFlatDetailsServiceImpl
 * @ description:
 * @ author:dzh
 * @ createTime:2022/5/9 16:14
 * @ version:1.0.0
 */
@Service
public class BookFlatDetailsServiceImpl implements BookFlatDetailsService {
    @Resource
    private BookFlatDetailsMapper bookFlatDetailsMapper;
    @Override
    public List<BookFlatDetails> listByBfId(Integer bfId) {
        return bookFlatDetailsMapper.listByBfId(bfId);
    }

    @Override
    public int insertOne(BookFlatDetails bookFlatDetails) {
        return bookFlatDetailsMapper.insertOne(bookFlatDetails);
    }

    @Override
    public int insertMore(List<BookFlatDetails> list) {
        return bookFlatDetailsMapper.insertMore(list);
    }
}
